package com.lcu.test;

import com.lcu.bos.dao.IUserDao;
import com.lcu.bos.modle.User;
import com.lcu.bos.service.IUserService;
import com.lcu.bos.untils.MD5Utils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
public class Demo02 {
    //测试Dao
    /**
     * 1.public void executeUpdate(String hql, Object... objs)
     * 2.public void executeUpdate(String queryName, Object... objs)
     * queryName是在配置文件里声明的一个hql查询语句
     */

    @Autowired
    private IUserService userService;
    @Test
    public void test1(){
       userService.modifyPassword("123","402881e770cdb6270170cdb6287f0000");
    }
}
